home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / windowwatcher / nsPIPromptService.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  3KB  |  101 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsPIPromptService.idl
  3.  */
  4.  
  5. #ifndef __gen_nsPIPromptService_h__
  6. #define __gen_nsPIPromptService_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIDOMWindow; /* forward declaration */
  18.  
  19. class nsIDialogParamBlock; /* forward declaration */
  20.  
  21.  
  22. /* starting interface:    nsPIPromptService */
  23. #define NS_PIPROMPTSERVICE_IID_STR "d16e906d-bab3-49e0-8688-7f49a6f4293a"
  24.  
  25. #define NS_PIPROMPTSERVICE_IID \
  26.   {0xd16e906d, 0xbab3, 0x49e0, \
  27.     { 0x86, 0x88, 0x7f, 0x49, 0xa6, 0xf4, 0x29, 0x3a }}
  28.  
  29. class nsPIPromptService : public nsISupports {
  30.  public: 
  31.  
  32.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_PIPROMPTSERVICE_IID)
  33.  
  34.   enum {eMsg=0, eCheckboxMsg=1, eIconClass=2, eTitleMessage=3, eEditfield1Msg=4,
  35.         eEditfield2Msg=5, eEditfield1Value=6, eEditfield2Value=7,
  36.         eButton0Text=8, eButton1Text=9, eButton2Text=10, eButton3Text=11,
  37.         eDialogTitle=12};
  38.   enum {eButtonPressed=0, eCheckboxState=1, eNumberButtons=2,
  39.         eNumberEditfields=3, eEditField1Password=4, eDefaultButton=5,
  40.         eDelayButtonEnable=6};
  41.   /* void doDialog (in nsIDOMWindow aParent, in nsIDialogParamBlock aParamBlock, in string aChromeURL); */
  42.   NS_IMETHOD DoDialog(nsIDOMWindow *aParent, nsIDialogParamBlock *aParamBlock, const char *aChromeURL) = 0;
  43.  
  44. };
  45.  
  46. /* Use this macro when declaring classes that implement this interface. */
  47. #define NS_DECL_NSPIPROMPTSERVICE \
  48.   NS_IMETHOD DoDialog(nsIDOMWindow *aParent, nsIDialogParamBlock *aParamBlock, const char *aChromeURL); 
  49.  
  50. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  51. #define NS_FORWARD_NSPIPROMPTSERVICE(_to) \
  52.   NS_IMETHOD DoDialog(nsIDOMWindow *aParent, nsIDialogParamBlock *aParamBlock, const char *aChromeURL) { return _to DoDialog(aParent, aParamBlock, aChromeURL); } 
  53.  
  54. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  55. #define NS_FORWARD_SAFE_NSPIPROMPTSERVICE(_to) \
  56.   NS_IMETHOD DoDialog(nsIDOMWindow *aParent, nsIDialogParamBlock *aParamBlock, const char *aChromeURL) { return !_to ? NS_ERROR_NULL_POINTER : _to->DoDialog(aParent, aParamBlock, aChromeURL); } 
  57.  
  58. #if 0
  59. /* Use the code below as a template for the implementation class for this interface. */
  60.  
  61. /* Header file */
  62. class _MYCLASS_ : public nsPIPromptService
  63. {
  64. public:
  65.   NS_DECL_ISUPPORTS
  66.   NS_DECL_NSPIPROMPTSERVICE
  67.  
  68.   _MYCLASS_();
  69.  
  70. private:
  71.   ~_MYCLASS_();
  72.  
  73. protected:
  74.   /* additional members */
  75. };
  76.  
  77. /* Implementation file */
  78. NS_IMPL_ISUPPORTS1(_MYCLASS_, nsPIPromptService)
  79.  
  80. _MYCLASS_::_MYCLASS_()
  81. {
  82.   /* member initializers and constructor code */
  83. }
  84.  
  85. _MYCLASS_::~_MYCLASS_()
  86. {
  87.   /* destructor code */
  88. }
  89.  
  90. /* void doDialog (in nsIDOMWindow aParent, in nsIDialogParamBlock aParamBlock, in string aChromeURL); */
  91. NS_IMETHODIMP _MYCLASS_::DoDialog(nsIDOMWindow *aParent, nsIDialogParamBlock *aParamBlock, const char *aChromeURL)
  92. {
  93.     return NS_ERROR_NOT_IMPLEMENTED;
  94. }
  95.  
  96. /* End of implementation class template. */
  97. #endif
  98.  
  99.  
  100. #endif /* __gen_nsPIPromptService_h__ */
  101.